# 错误捕获

store = input('请输入分数：')
try:
    if 0< int(store) < 100:
        print('您输入的分数是：',store)
    else :
        raise Exception('请输出1-100的数字')
except Exception as ex:
    print(ex)


# 输入三边计算是否为三角形
lst=[]
try :
    while True:
        if len(lst) == 3:
            break
        else :
            border = input('请输入三角形的边长：')
            if(str(border).isdigit()):
                lst.append(border)
            else:
                raise Exception('请输入数字')
except Exception as ex:
    print(ex)
max = max(lst)
lst.remove(max)
min = min(lst)
lst.remove(min)
center =lst[0]
if int(min)**2 + int(center)**2 == int(max)**2:
    print('OK')
else :
    print('NO')


